@import "src/variables";
@import "~le5le-ui/variables";

$head-height: 0.4rem;
$color-border: #ddd;
$tools-width: 2rem;
$props-width: 2.4rem;

app-workspace-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

:host {
  & > .flex {
    height: 100vh;
    padding-top: $head-height;

    & > div {
      overflow-y: hidden;
      &:hover {
        overflow-y: auto;
        padding-right: 0;
      }
    }
  }
}

.tools {
  flex-shrink: 0;
  width: $tools-width;
  border-right: 1px solid $color-border;
  background-color: #f8f8fa;

  .title {
    padding: 0.05rem 0.1rem;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    &:first-child {
      border-top: none;
    }
  }

  .buttons {
    padding: 0.1rem 0;
    a {
      display: inline-block;
      color: $color;
      line-height: 1;
      width: 0.4rem;
      height: 0.4rem;
      text-align: center;
      text-decoration: none !important;

      .iconfont {
        font-size: 0.24rem;
      }
    }
  }
}

.full {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-x: auto;

  & > div {
    min-height: 100%;
  }

  svg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }
}

.props {
  flex-shrink: 0;
  width: $props-width;
  border-left: 1px solid $color-border;
  position: relative;
  background-color: #f8f8fa;
  padding-right: 0.06rem;
  overflow-x: hidden;

  & > div {
    width: 2.35rem;

    & > * {
      display: block;
      width: 2.4rem;
    }
  }
}
